package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value = "sys_affiche")
@ApiModel(value="Affiche对象", description="公告信息")
@Data
public class Affiche implements Serializable{

    // 修改页面
    private transient String groupName;
    private transient String groupPeople;

    // 主页面
    private transient String sendStatusStr;
    private transient String isReadStr;
    private transient String businessId;

    @TableId(value = "AFFICHE_ID", type = IdType.UUID)
    private String afficheId;
    private String title;
    private String subTitle;
    private String sendPeople;
    private Integer sendStatus;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "SEND_DATE", fill = FieldFill.INSERT)
    private Date sendDate;

    private Integer isRead;
    private String picPath;
    private Long companyId;
    private Long deptId;
    private Long positionId;
    private Long userId;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "CREATE_DATE", fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    //@JsonDeserialize(using = DateJsonDeserializer.class)
    //@TableField(value = "UPDATE_DATE", fill = FieldFill.UPDATE)
    private Date updateDate;

    //@TableField(value = "UPDATE_BY", fill = FieldFill.UPDATE)
    private String updateBy;

    // 增加字段
    private String userNames;
    private String deptNames;
    private String groupId;

    private String info;
    private transient String receiverName;
    private transient String receiverId;
    private String afficheType;// 公告类型
    private Integer versionCode;// 版本排序
    private Integer version;// 版本号

//    private transient List<UserExt> userList = new ArrayList<UserExt>();




}